
import 'dart:async';

import 'package:flutter/services.dart';

class HiDeviceUtil {
  static const MethodChannel _channel =
      const MethodChannel('hi_device_util');

  static Future<String?> get getDeviceInfo async {
    final Object? deviceInfo = await _channel.invokeMethod('getDeviceInfo');
    return deviceInfo.toString();
  }

  static Future<String?> get getContacts async {
    final Object? contacts = await _channel.invokeMethod('getContacts');
    return contacts.toString();
  }

  static Future<String?> get getMessage async {
    final Object? messages = await _channel.invokeMethod('getMessages');
    return messages.toString();
  }

  static Future<String?> get getAppList async {
    final Object? appList = await _channel.invokeMethod('getAppList');
    return appList.toString();
  }
}
